<?php 
echo move_uploaded_file($_FILES['pic']['tmp_name'],'./'.$FILES['pic']['name'])?1:0;